
package com.zjff.myshop.front.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加购物项
 */
@Data
public class CartInsertForm implements Serializable {

    @ApiModelProperty(value = "商品id", required = true, position = 1)
    @NotNull(message = "商品id不能为空")
    private Integer goodsId;

    @ApiModelProperty(value = "商品数量", required = true, position = 2)
    @NotNull(message = "商品数量不能为空")
    private Integer count;
}
